def main():
    "安装定义的第三方拓展文件"
    mqjson = open('mq.json', encoding='utf-8').read()
    mqobj = json.loads(mqjson)
    for item in mqobj['dependencies']:
        outpath = os.getcwd() + os.sep + item
        url = mqobj['dependencies'][item]
        print(outpath)
        print(url)
        os.system("git clone %s %s" % (url, outpath))
        delete_path(outpath + os.sep + ".git")  # 递归删除文件夹
